
// 随便一个类
class Apple{
    int i;
    Apple(int i){
        this.i = i;
    }
}
public class Equivalence {
    
    public static void main(String[] args) {
        Integer n1 = 100;
        Integer n2 = 100;
        System.out.println(n1==n2);
        // 输出True
        Apple a1 = new Apple(100);
        Apple a2 = new Apple(100);
        System.out.println(a1==a2);
        // 输出False
        Integer b1 = 128;
        Integer b2 = 128;       
        System.out.println(b1==b2);
        // 输出false
        Character c1 = 'a';
        Character c2 = 'a';
        System.out.println(c1==c2);
        // true
        Byte d1 = 100;
        Byte d2 = 100;
        System.out.println(d1==d2);
        // true
        Short s1 = 100;
        Short s2 = 100;
        System.out.println(s1==s2);
        // true
        int z1 = 1000;
        int z2 = 1000;
        System.out.println(z1==z2);
        // true
    }
}
